package team.zero.lemon.module.cms.dao;

import org.apache.ibatis.annotations.Param;
import team.zero.lemon.common.persistence.ICrudDao;
import team.zero.lemon.common.persistence.annotation.MyBatisDao;
import team.zero.lemon.module.cms.entity.Category;

import java.util.List;

@MyBatisDao
public interface ICategoryDao extends ICrudDao<Category> {
    List<Category> findByParentId(Category dic);
    Category findByParentIdAndName(@Param("parentId") int parentId, @Param("name") String name);
}